<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <title>Template Data and Directive</title>
</head>

<body>
    <div id="app">
        <h1>Chapter 1</h1>
        <div class="ex_1">
            <p v-if="hours < 12">Good morning!</p>
            <p v-if="hours >= 12 && hours < 18">Good afternoon!</p>
            <p v-if="hours >= 18">Good evening!</p>
        </div>
        <div class="ex_2">
            <h1>Hello {{subject}}</h1>
        </div>
        <button :disabled="buttonDisabled">Test button</button>

    </div>
    <script>
        new Vue({
            el: '#app',
            data() {
                return {
                    hours: new Date().getHours(),
                    subject: "Gerald",
                    buttonDisabled: true,
                }
            }
        });

    </script> 
</body>
</html>